$.get("https://free-api.heweather.com/s6/weather?location=auto_ip&key=a254e7178ce645038748a23a07664bf2", function(result) {
  let winfo = result.HeWeather6[0];
  let today = winfo.daily_forecast[0];
  $('#weatherImg').attr('src',`https://cdn.heweather.com/cond_icon/${today.cond_code_d}.png`)
  if (today.cond_txt_d == today.cond_txt_n) {
    $('#weatherCond').text(today.cond_txt_d);
  } else {
    $('#weatherCond').text(today.cond_txt_d + "转" + today.cond_txt_n);
  };
  $('#weatherTemperature').text(today.tmp_min + "/" + today.tmp_max + '°C');
  $('#weatherWind').text(today.wind_dir + today.wind_sc + '级');
  console.log(today)
})
